package cn.tedu.charging.order.emqx;

import cn.tedu.charging.common.utils.SnowflakeIdGenerator;
import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.feign.DeviceClient;
import cn.tedu.charging.order.mapper.BillFailMapper;
import cn.tedu.charging.order.mapper.BillSuccessMapper;
import cn.tedu.charging.order.repository.ESRepository;
import cn.tedu.charging.order.websocket.WebSocketServer;
import lombok.Data;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Data
public class MqttContext {
    // 回调函数用什么 上下文就传什么
    @Resource
    private MySerializer mySerializer;
    @Resource
    private BillSuccessMapper billSuccessMapper;
    @Resource
    private BillFailMapper billFailMapper;
    @Resource
    private RedisTemplate<String,String> redisTemplate;
    @Resource
    private DeviceClient deviceClient;
    @Resource
    private WebSocketServer webSocketServer;
    @Resource
    private CostClient costClient;
    @Resource
    private SnowflakeIdGenerator snowflakeIdGenerator;
    @Resource
    private ESRepository esRepository;
}
